import request from '@/utils/request'

export function order(dateRange) {
  return request({
    url: '/main/chart/order',
    method: 'get',
    params: { dateRange: dateRange || null }
  })
}
export function orderAmount(dateRange) {
  return request({
    url: '/main/chart/orderAmount',
    method: 'get',
    params: { dateRange: dateRange || null }
  })
}
export function customerRange(dateRange) {
  return request({
    url: '/main/chart/customerRange',
    method: 'get',
    params: { dateRange: dateRange || null }
  })
}
export function cleanerRange(dateRange) {
  return request({
    url: '/main/chart/cleanerRange',
    method: 'get',
    params: { dateRange: dateRange || null }
  })
}
